public class Point {
	public int x;
	public int y;

	public Point() {
		x = 0;
		y = 0;
	}

	public Point(Point anotherPoint) {
		x = anotherPoint.x;
		y = anotherPoint.y;
	}

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	@Override
	public boolean equals(Object anotherObject) {
		if (!(anotherObject instanceof Point)) {
			return false;
		} else {
			Point anotherPoint = (Point) anotherObject;
			return this.x == anotherPoint.x && this.y == anotherPoint.y;
		}
	}
}
